package com.shundr.shipper.common.model;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * 公共基本类，用来赋值key-value键值对 AttitudeInfo
 * 
 * @author larry 2015-4-15 下午4:18:06
 * @version 1.0.0
 * 
 */
@DatabaseTable(tableName = "AttributeInfo")
public class AttributeInfo {
	@DatabaseField(generatedId = true)
	private int id;
	@DatabaseField
	private String code;
	@DatabaseField
	private String name;
	@DatabaseField
	private String type;
	
	private boolean selected;
	public AttributeInfo() {
		super();
	}
	
	public AttributeInfo(String code, String name) {
		super();
		this.code = code;
		this.name = name;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public boolean isSelected() {
		return selected;
	}

	public void setSelected(boolean selected) {
		this.selected = selected;
	}

}
